<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>generator</title>
  <!-- css公共样式 -->
  <link rel="stylesheet" href="../common/css/main.css">
  <!-- element-ui样式 -->
  <link rel="stylesheet" href="../common/css/elementui.css">
</head>
<body>
  <div id="app">
    <div>{{name}}</div>
  </div>
  <script src="../common/js/vue.main.js"></script> <!--vue-->
  <script src="../common/js/vuex.main.js"></script> <!--vuex-->
  <script src="../common/js/vue-router.main.js"></script> <!--vue-router-->
  <script src="../common/js/element-ui.main.js"></script> <!--elemnt-ui-->
  <script>

    let app = new Vue({
      el: "#app",
      components: {},
      props: {},
      data: () => {
        return {
          name: "generator"
        }
      },
      computed: {},
      watch: {},
      created() {
        this.init()
      },
      mounted() {},
      methods: {
        init() {

          function* testGenerator() {
            yield [1, 2, 3];
            yield "hello";
            return "baibai"
          }

          let resultGenerator = testGenerator()

        }
      },
    })

  </script>
</body>
</html>